package mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pojo.BookRecord;
import pojo.vo.BookRecordVo;

import java.time.LocalDate;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2022-12-05
 * Time: 14:45
 */
@Mapper
public interface BookRecordMapper {

     boolean addBookRecord(@Param("bookRecord") BookRecord bookRecord);

    List<BookRecordVo> listBookRecord();

    List<BookRecordVo> listBookRecordByAccount(String account);

    boolean deleteRecord(@Param("recordId") Long recordId);

    boolean setOverDue(Long recordId);

    boolean setFineMoney(@Param("fineMoney") Double fineMoney, @Param("recordId") Long recordId);

    void returnRecord(@Param("recordId") Long recordId,@Param("realTime") LocalDate realTime);

}
